package com.example.springboot.mapper;

import com.example.springboot.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdminMapper {
    @Select("select * from Admin")
    List<Admin> list();
    @Select("select * from Admin where username= #{username} and password = #{password};")
    Admin getByUsernameAndPassword(Admin admin);
}
